package com.vedana.bankmobile.shared;

import java.io.Serializable;
import java.util.Date;

/**
 * Bank operation (debit/credit) domain object.
 * 
 * @author Didier MOISE
 */
public class Operation implements Serializable {
	private static final long serialVersionUID = 2953465458048221241L;

	private long accountId;
	
	private Date date;
	
	private String label;
	
	private double value;

	/**
	 * @return account id
	 */
	public long getAccountId() {
		return accountId;
	}

	/**
	 * @param accountId the account id to set
	 */
	public void setAccountId(long accountId) {
		this.accountId = accountId;
	}

	/**
	 * @return date of operation
	 */
	public Date getDate() {
		return date;
	}

	/**
	 * @param date the date of operation to set
	 */
	public void setDate(Date date) {
		this.date = date;
	}

	/**
	 * @return operation label
	 */
	public String getLabel() {
		return label;
	}

	/**
	 * @param label the operation label to set
	 */
	public void setLabel(String label) {
		this.label = label;
	}

	/**
	 * @return operation value
	 */
	public double getValue() {
		return value;
	}

	/**
	 * @param value the operation value to set
	 */
	public void setValue(double value) {
		this.value = value;
	}

	@Override
	public String toString() {
		return "Operation [accountId=" + accountId + ", date=" + date
				+ ", label=" + label + ", value=" + value + "]";
	}
}
